package com.dps.omc.agent.queue.consumer.tasker;

import java.io.IOException;

/**
 * Created by lip on 2015-12-17.
 */
public abstract class AbstractRecTasker implements  Runnable{
    private String message;

    public AbstractRecTasker(String message)
    {
        this.message = message;
    }

    public void run() {
        try {
            this.execute();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public abstract void execute() throws Exception;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
